package com.example.springbootdemo.app.service;


import com.example.springbootdemo.domin.VO.getCourseDetailVO;
import com.example.springbootdemo.domin.entity.Course;
import com.example.springbootdemo.domin.entity.Teacher;

import java.util.List;

public interface TeacherService {
    /**
     * 查询老师
     *
     * @param tno
     * @return
     */
    Teacher getTeacher(Integer tno);

    /**
     * 修改老师
     *
     * @param teacher
     */
    void updateTeacher(Teacher teacher);

    /**
     * 删除老师
     *
     * @param tno
     */
    void deleteTeacher(Integer tno);

    /**
     * 增加老师
     */
    void addTeacher(Teacher teacher);

    /**
     * 添加多个老师
     *
     * @param list
     */
    void addTeachers(List<String> list);

    /**
     * 查询多个老师
     *
     * @param list
     * @return
     */
    List<Teacher> getTeachers(List<String> list);

    List<Teacher> getAll();

    List<getCourseDetailVO>getCourseByTno(String tname);
}
